/**
 * Created by fangshufeng on 2018/4/23.
 */
import React, {Component} from 'react'

export default  class LineView extends Component {

    static defaultProps = {
        lineWidth: 3,
        vertical: false
    };

    render() {
        return <div style={{
            height: this.props.vertical ? '100%' :  this.props.lineWidth,
            width:this.props.vertical ? this.props.lineWidth: '100%',
            backgroundColor: '#92cdec',
            ...this.props.style,
        }}/>
    }
}